package com.ruoyi.expert.controller;

import com.ruoyi.expert.pojo.*;
import com.ruoyi.expert.service.Basicservice;
import com.ruoyi.expert.service.Expertservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 *  专家信息 基本信息页面显示
 *
 * @author wyp
 */
@RestController
@RequestMapping("/basicA")
public class BasicController {
    @Autowired
    private Basicservice service;

    /** 专家信息：基础信息 */
    @PostMapping("/addexpert")
    public Integer addexpert(@RequestBody Expert expert){
        return service.addexpert(expert);
    }

    /** 专家信息：任职经历信息 */
    @PostMapping("/addperience")
    public Integer addexperience(@RequestBody Experience experience){
        return service.addexperience(experience);
    }

    /** 专家信息：教育经历信息 */
    @PostMapping("/addeducate")
    public Integer addeducate(@RequestBody Educate educate){
        return service.addeducate(educate);
    }

    /** 专家信息：培训经历信息 */
    @PostMapping("/addtraining")
    public Integer addtraining(@RequestBody Training training){
        return service.addtraining(training);
    }

    /** 专家信息：职业资格信息 */
    @PostMapping("/addoccupation")
    public Integer addoccupation(@RequestBody Occupation occupation){
        return service.addoccupation(occupation);
    }

    /** 专家信息：职称信息 */
    @PostMapping("/addjob")
    public Integer addjob(@RequestBody Job job){
        return service.addjob(job);
    }
}
